<?php
require_once $_SERVER['DOCUMENT_ROOT'].'/common.php';

$result = user::register($_POST['user_email'], $_POST['user_nickname'], $_POST['user_password']);
if ($result>0)
{
	user::login($_POST['user_nickname'], $_POST['user_password']);
}
echo json_encode(array('result'=>($result>0)));
